package com.zdb.order.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zdb.order.entity.District;
import com.zdb.order.mapper.DistrictMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DistrictService {
    @Autowired
    private DistrictMapper districtMapper;

    //cid，查询区District对象
    public District queryDistrict(int did){
        District resultDistrict = districtMapper.selectOne(new QueryWrapper<District>().eq("id", did));
        return resultDistrict;
    }
}
